package com.carsystems.mapper;

import com.carsystems.pojo.ViolationDetails;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ViolationDetailsMapper {
    //查询全部违规记录详情
    List<ViolationDetails> violationList();

    //按violation_id查询单条违规记录详情
    ViolationDetails selectByPrimaryKey(int violation_id);

    //增加一条违规记录详情
    int addviolationdetails(ViolationDetails violationDetails);

    //修改一条违规记录详情
    int updateviolationdetails(ViolationDetails violationDetails);

    //删除一条违规记录详情
    int deleviolationdetails(int violation_id);
}
